<?php
include_once('./lib/simple_html_dom.php');
$host_url ="http://www.epubit.com.cn";

$target_url =isset($_GET["url"])?$_GET["url"]:"";



$html= file_get_html($target_url);


$result = array();
$data=array();

foreach ( $html->find("div[class=markdown-body]") as $e){
    $data["html"] = trim($e->innertext);
    break;
}




$result["error"]=0;
$result["data"]=$data;
header('Content-type: application/json');
echo json_encode($result);


